import localCache from "/src/utils/cache"

   var state={
        meunlist:localCache.getCache('menulist') || [],//菜单
        kechengclassify:[],//课程分类列表
    }
   var  mutations = {
       setmenulist(state,data){
           state.meunlist = data
           localCache.setCache('menulist',data)
       },
       //课程分类列表
       getkechengclassify(state,data){
           console.log(data);
           state.kechengclassify =data 
       }
    }


export default {
    // scopename:true,
    state,
    mutations
}